<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .parent {
            background-color: pink;
            width: 500px;
            height: 400px;
            border: 1px solid red;
            margin: 0 auto;
                
            display:flex;
            flex-direction: row;
            flex-wrap:wrap;
        
            /* justify-content:center;
            align-items: center; */


        }
        .child{
            /* width: 100px; */
            height: 70px;
            color: white;
            flex:1;
        }
    </style>
</head>
<body>
    <div class="parent">
        <div class="child" style="background-color: red;">123</div>
        <div class="child" style="background-color: green;">435</div>
        <div class="child" style="background-color: blue;">535</div>
        <!-- <div class="child" style="background-color: red;">123</div>
        <div class="child" style="background-color: green;">435</div>
        <div class="child" style="background-color: blue;">535</div> -->
    </div>

</body>
</html>